big data collection errors fixed with regex to remove some whitespace; other minor modifications to backend flow