refactored 'register' cmd
refactored runtime cmds
refactored runtime cmd