update dependencies and minor improvements