workaround to call main() even when exporting other functions