add logging statements for debug purposes