fix relations and install directory