multi-train configuration working. Fixed several bugs with tasks getting stuck waiting on a location