adding fee gen code from server