added better detection on bin bootstrap