added hapi server and proper routing