eliminated daemon and keep restapi