api fixes, response and settings class

and many other fixes