keeping history per terminal.. though i'm not sure this is right either