get rid of train connection, add train factory