reworked talloc() to in order to help track down invalid