minor optimization for install process