modify truncate default to true, using REPLACE first