support language tables
syntax bug fixes
merge master into mongodb branch to keep up to date