server script now listens for and prints input.