Rerefactor uxd to add mailslot support