made lr() only run in dev