refactored with express and hogan