fixing some minor environmenting bugs re ack