optimisiation: library in a separate page