added some stuffand daemonized