added direction and places search functions