added trial run functionality