updated backend to handle serving questions as json