main -> server