generateClient does error handling and css formats it