moved export data scripts to only be run if data there