adding abililty to refresh credentials
adding call to refresh