modified reg stuff

Signed-off-by: Tim Traver <ttraver@mivamerchant.com>