fixes for static page generation