do we need to convert `allowOverwrite` to a 1: 0?