added env flag HEROS_DEBUG
replaced env variable by property