pass conf file in as argument. remove defaults from code