inline lexar logic move to renderer too