commandline: clean up folder structure
commandline: do not write to empty pages