fixed a syntax error found in testing
wording changes, hopefully use of deferred callbacks is easier to understand