start to write pointer plugin