fixed several bugs in SerInstance, see BugsFixed_and_TODO.txt