fix install order for dependencies