added api parameter support