making dependencies optional and adding missing versions for imports