move emitblock visitor to blocks file