update dependencies
some smaller code cleanups