api change and add function type command