split units data into seperate files