logging groundwork