adding the main server in the code