update raven to latest version and fix minor coding issues