add logging statements for debugging