added initial server processing loop.