[feature] merge endpoint into sp