fixes on rest api