added ret->activate() to getBlock()