add query parser
move command impls into plugins source