common tool for write scribe server and client