decrease install script memory consumption