add local import, notice reference-shadowing
various fixes/cleanup
updates compiler