modified store,add pid support