fixed file input sort of