fix bug and add functions search and download