modify agent shell scripte