adding a reg resource