make sure to go back to original dir at end