fix url bit and remove mkdir bug