register works through command line