modified script, ready to be deployed..