moved DEV_MODE constant to config