make apps to machines a mant to many relationship