added search type and automatic tth search