unboundlocal for unfinished files