adds support for wildcard static imports, fixed up invalid code