store func basics
some state before rearrangement with std::map and other stuff