refactor service-port map to app