replace host and remove unecessary files