allow passing strings like 'package.module.ClassName' to apply