generating reset_ex methods