some changes to fit non-ROOT DOCROOT