step 1: strip out all the existing io handlers