added debugging flag predicated on NODE_ENV=debug