move cmd to common