added shell debugging