bc417 setup function