support for prepared statement results