add $devEnvironment, remove some errors