server base codeing