cottages.api = {} cottages.dofile("api", "register_machine") cottages.dofile("api", "legacy")