defined extensions api with architect