implement fetch and search commands