added term table/script and model