more reg improvements