moving api port directive