moved dev mode constant
try to prevent logging errors