fix ordering of deps