using devmode from config