adaptions for rest api