set up library and pages files