few fixes for the Api class
removed type checking for params