export loop handler