add simple.slice and related code