ok, found the bug! the counter was a byte instead of an int! not it work really nice, proof:
will add correct code and a little article as soon as possible