add agmip common function as dependency