client res source generation