remove localhost hostname hardcoding