cleaned up logging, fixed cancel bug in advertise script.