added headers, some logging