getbyId magic