pre-processing libraries