adding fens and terminals