try some fixes to shell agent