Some x-callback utilities