fix peek template, add debug logging for nanny