cherry-picked some snippets
some snips