added some improvements, added clearing daemon after changing url