Fix method invocaiton
Adds rudimentary credential caching