basic tablescan implementation