clear callbacks the smarter way