added PAGES_DIR