remove string monkeypatching, process template class in renderer
fix warnings