use lib instead of code