cp_scoping allocation