FIXED the shell script part - this is now working an much easier ;-)