added general load function for data/mesh IO