more logging in shell wrapper