properly make callbacks work for start and stop