inspired from this post's discussions: https://hexbear.net/post/3508536