auto memo and re-run feature of non layers re-re-re-implemented.