add check for NULL desc, return values in lua shell