adding run test mode