made it compile to lib