added handling of undefined label use