fix dependency determination