refactored server context init vars