updated server daemon code a little.