moving code that answered questions from groundhog to here