updated set title script to contain some code