Teg: railway maintenance