added checks for dependencies