copy of core classes from log-analysis