code for SIMULATE_PROD feature