handle instance and class methods module