fix type checking of typed vars; turn off logging