need to run replace task at the end