move daemon init to a controller