use uniqid() only on server side to keep consistency