working some more on the surveys backend