added file handle helper, updated visualizer