added daemon
fixed incoming parameter