changed to use jade as templating