talloc integration
refactoring. talloc integration