mod to io file check:only for serial or yamr slave