enable restarting
make sure to switch to current dir before restarting