added ability to set server root directory