some simple code snippets for use with Mojolicious