adding creation of tmp dir and adding ability to use authentication when droping and restoring