added write IO command