file input, gc fix