fix data import function some more. added qa test.