changed a few things regardin shell errors