changed tmp dir to ~/.tmp