added forceOverwrite argument