improved shell logging