moved large file protection code