combining create/write procs to write to simplify api