main.cpp => master hack