move `app/comman` to libraries