set debug to true in local environment