changed to return only list of bugs