Queue command handlers
all q operations except listener are green now. And some refactorings