fixed some data aquisition bugs