process input for server