if no id is set in the backend then generate one