set dev flag correcrly