added location to paramters for text search, closes #7