added conditional to set debug to false for production