fixed stopdir issue, now removes at end of setup