added autosql capabilities