added better logging for inserting large files