cleaned env flag in system module