fix links
remove tmp dir