hackish bar detection in place