base code for get connection params from configuration