added preliminary fragment control code