implement getCurrentSpeed, issue #6