added devmode flag