detail optimization. now work on reading note files.