save cursor location and restore after running bde_format