update to 2.2, remove deprecated method calls
added a default callback if none was specified