server apply flow