add  definition to trails controller ctor