remove  isProduction util since it can't be done sync