added register option