some minor modifications to EI_IO script