use config for port