added lib and pages directories