add miniprofile and fix gem bug