fixes dependency bugs