updated for latest Mojolicious