collect input from env for brain

also cleaned up 2 minor things