debug code
and onUncompleteCallback