fixed issues with lib