makes hostory works on debian