make speed configurable
version used in testing