adds onCompleteCallback to options