macro to be updated for newIO