modified post-vid.sh