don't think rest api is used here anywhere, so remove