added exception handling for doPowers