change prototype for daemon