also: TRUE and FALSE were wrong way round (oops) and I have removed ABORT.. explicit error mesgs on stderr now.