Storing location objects and returning an object instead of just an ID

self.emit will add the namespace in the component module