fix for trust manager