initial doc write