saving changes after QA. Error handling seems fine
curid retrieval function implementation