added support formethod definitions