use config for pin