added daemon support for unix
merged into master