fixed problem with library definition