working on command validation queries