added flags for setupenv