more debugging output and making hook send email even when there are no stories