add log for debugging