switch deprecated _pyroOneWay to decorator