added prediction endpoint