increasingly not happy about this `str(user[0]["id"])` pattern. maybe a helper function?