cross-posted from: https://lemm.ee/post/34636917