this bug may not be fixable until program moved to promise library