add server code to git libarary