adding script to get activity name and process name