monkied with main.cpp