helper method to get configurations