improved to work with belongsto and hasone/many