JUST FOR ARCHIVING
some random non-working code.
beginning new version now