xxx light: fix emergency mode
xxx fix limit computation