strip stuff not needed for xprofile, cleanup and fqdn fix