added setup method in the API interface
API changes