before library