add hooks for getposgenerate