fixed bug that wasnt resetting shell vars