added serializer helper function in IOHandler