added an unsafe method for retrieving methods from classes