v3.36 introduced MAIN, END_MAIN and RETURN_MAIN for memory release safety