only save mks when necessary