logging instead of print
fix
Add GENERATED sections to as_class template