patch for both bootstrap 2 and 3 supports