starting to add logging