added a new Syntax to define factories as callables.
fixed CS