changed to debug mode in production