changed for new Input/Output API