hoist bug
file loop