saving page to disk and creating dirs, but not perfected yet