updates for multifile, was reading files twice. I hope it's fixed now