extract pure functions
better list ellipsizing for value previews