some weird velocity and acceleration control