add pointer method support. some fixes