added support for subdirectoried methods