modified main script | added a new drive method