cleans up dependencies