implemented device registration
finished service to get the last version of a pass