production and test mode