updated for drupal platoform