make scope its own table