allows options object to be a callback