fixed libs
various fixes