improved position remembering
removed serialization support, now use JSON.