correct scope
update docblock and return arg in template plugin
update `ob_start()` for php 5.4