make sure methods are accessible and can be accessed through reflection