only display errors when in devloper mode and remove dev mode