finalize command api design