[command] added command requerying system
[command] simplified code by introducing CommandSource protocol