writing saved stuff out