added main server codebase