move httpify to app-specific code