added IO support, fixed visibility problems of new classes