add some logging for each step