fixed some library issues