modified to compile to lib directory