fixes to data pull scripts