moved and renamed config functions