move the y-or-n call to be onload of the erc code's file