octave: added initial card io code