add support for methodswith