Getting all global vars and method signatures in a less hacky way