lib: output scratches