add library and function check