adapted new architecture; added OutputNode