added speed command and api