refactorred and fixed loader to double tabular files