router for commands from main application