adding functions to start elastic search