add dependancy checks