better loop handling for loadblock