some interface changes and a first log-pdf implementation