add inet spec
refactor
add int spec