fix fragments and testing