add PTL recompile method