added rail->rail cleanup option to executable