many annoying bugs fixed (sadly there is a few more)
(#388)