some rearraning for the install script