update dependencies and fix pin reading