added some compatablitly fix for buffers and sqlite3