start of doc/file impl