alot of helper functions around grep/buffers/windows