command refactor, need to test qi.js