modified dock script