added getconfig functions