automatically set autoport to properly support legacy behavior