fix for dependency updates and optional karma dependency