seems that afterModel is being called BEFORE model hook. seems strange
added normalize function which will add the id of a device as first memeber in the json