added some snippets done at work