rewrite of the standard-structure plugin