getting dependencies to build correctly