update custom domain, clean up directory