clean interface in main.cc