adding some motor regulator stuff