IR.pm handles extra lines correctly now
final fixes for min_empoty setting