fix API usage add main file