add logging for beam