add log statements