more work on the new api
added seting for the api