support for adding custom node.
added end() callback when redering is done.
make logback optional.