committing some old dg server code