refactor to use PAOS MIME to detect ECP