improvements for surveys
implements persistence for surveys