clean up debug output, set up snapshot refresh and snapshot kill