extended in trema controller class.