end loop server