added blockName parameter to constuctor