getting dependencies back in order