make public + pass config to constructor
add config test