setting all flags by default which fixes environ