fixing file target and disabling unlink of unrefed files