fixed pre_configure, fixed post configre for swift