added register support