Added dep if-not-exist checks, switched to json