fix func/lib check