better debounce behavior
added raf
minor tweaks