add if build flag to prevent dev issues