consolidate exec
add type assertions