debug logging & user tracking