implement sp_get_i/n/s