add some dependency checks