removed getPublicMethods, it is not used anymore