got auto-incrementer working