reduced main_mini.cpp as far as I could.