add overwrite flag for appending attributes