bit of an api.pl update