fixes for libs