improving plan api
add endpoint