fix typings and dependencies