added a settings variable for making the api clearer