added pageRoutes configurability + properly export Promise