first pass at data acquisition code