externalized api as file, restructured example