middlewared sidebars + build script