lastID patch + quotes