fix bug with client file build and cookies