implemented some API commands