begin to write a library to catch somme library call