add support for custom logs/leaves