some basic error tracking so that exit status of --register can be determined