killed rest api code because daemon process are now internal