That did it although why does the $WAGLOBAL_localRoot look at the top level localhost structure instead of the site root folder where it's located?
my original structure was /CMS/ this caused the problem:
I changed it to /mydir/CMS/ which is top level locahost and works.
thanks for the help.