chansrv: some rail fixes from A8