make plugin Mojolicious 4.0 compatible