fixed common.py and base tpl for fanvil