added parameter support for methods (needs improvements)