improves error message when retrieving unknown app
improves many to many associations