clearing callbacks and other tweaks