lib. for Train