bugfixes and library-path changes