port ToResponse from master
update deps