register via decorator; register of whole object