factories for location and mailbox