refactor env properties to config, fix timer script