properly format responses, closes #106