implement query package
async cli