fix deprecations and use new syntaxes for Lita v4