start of the conversion of this tool into a drupal module for the spoke project