WIP - add log scanning