fix heap corruption + flesh out horizontal viewport + regex search