unifying all io wrapping methods to return dictionaries