add logging

change the comment here too, please :)