xs: better lookup() methods