fix #4 and update dependencies.