* update replace script for v4.1