added testing code... getting segfault on seemingly innocent line... i'm able to signal the train fine, but it segfaults soon after its in there - after a test printline, before a sleep. (wtf?)