class for spiri controller