rail stored as Mpids, code compiles