[master] change extension conditional