generates context with names and IDs