added support for waiting on inputValue