bugfix: generate pyramid files only if pyramid is enabled