migrate jios output functionality from ocelib repository