better dependencies checking