added compatibility with Mojolicious 4.*