optimize println code
fix setup command sequence bug