crossbar-generating script and example