added collectData for standalong execution