save cursor handling
fixes #188