pseudocode dump of thoughts, some testing setup