fix for checking if running in development mode