updating boostrap code; writes data file now.