add pointer support

add pointer support