change assert logic
add assert logic for file loader