basic loop for crawler