debug mode only in local environments