added daemon flag