moved motor stuff to 1 file