used $cfg->wwroot to fix paths problem