Getting it right on railways