add bower provisioning and fix other bugs