move things around in api example