fix bug.
register command.
a lot of refactoring on the queue component.