add support for using . as method caller on classes