modified unit loader for correct format