flesh out file write class and config