initial import of minisurvey
simple refactoring