change command in api.pl