added debugging in production