fix lib hashextend, fix api, prepare improved arguments to search