refactoring of I\O. added util for reading actions from file