flat the lib