initial conversion of api methods to command dispatch