add smartifdef package

add smartifdef package