improving id format and logging