add debug prints for init/shutdown