remove magic path