logging on prototype