refactor by moving pyramid stuff into named pyramid files...