several fixes
many more fixes
more fixes...
still having problems with negative indices