removed dependancy on document root