modify server to handmade server step 1