fixed command handling and accidental deletion of shell prompt