fix unbound id error for unbound assignments
fix this up for shadowing
more docs