set debug to true for local testing