improving config loading