improved watching of dependencies; add debounce