modified __lwt_start