minor changes to usage of tempRoot