got rid of performance heavy config lookup