fixing install script and add length to domain field for long domains and sub domains