removed legacy config function