rm server logic