add function for obtain configuration