adds init function and getter for default cfg path