partially implemented logging