io loader/helper function to converter from io to objects