add env.$rack_env.local and two parsing fixes

see commit messages…
this should raise an error too