fixed bugs with window titles, rebuilding, and added vectorization to pos_helper_gen (adj_helper may be doable too)