finished velocity API -- needs testing