create bb ap structure, create templates