use lib for fcns