working train controller and location singleton