slight chmod and env changes