add constructor for settings