added validation for input and output of slime - only works when using
slime presentations.