https://bavuse.pages.dev/posts/rail-dispatch-solutions/