put the files outside the wwwroot and fixed some setting fails of drupal with hooks