WIP. towards daemon mode