rm main() in api