raise FRAME_WARN to 2048 to avoid stack overflow warnings