some speed detection Ditlev added