working on stop problems crash on exit