add dep checking.