some comments and logging