change location of atexit