server basic loop start work