(*) should be in previous commit
(^) move pools from static memory to Main class