api improvement

more than one parameter can be passed in api function