added some preliminary logic for sets.

Signed-off-by: Andrew Porter <mephisto83@hotmail.com>