MINOR add logger+mini refactor