fixed function for retrieving configuration