adjust xmethod macro to yield a more helpful error message