improve shell logging