add api for vel & acc