now it wont start on exit and it will stop reading and it will use less memory