shouldn't the block be called for every new connection? clone + instance_variable_set already looks like trouble :-)