fixed some things at lib