save method returns temporary directory