separated structured pref implementation into loc and commod