clean up command line page processing