make the source file of lib working