improve dep handling

Signed-off-by: Caleb Cushing <xenoterracide@gmail.com>