added static pages support