fixing credentials problems