fixed some problems with libraries