working on daemon and RESTful interface