fixes #2, updated debounce to use a reasonable delay