don't sync when building production

some fixes