add const method support.