Restore template dir
registration: fix template
setup.py: require updated api