added powerpack gem and some performace tuning