bugfixes
probably the first correct version.
first working version.