minor changes on v9
added replace script