adding pdo support