miscellaneous snippets