replace variables in storage base
add sync