copied over from JimR file - sean's original files