fix issues with lib