Fix privacy provider, add debug setting