more error checking and changed how we submit regs