select lib by extname