remove path before copy