plugins api returns nothing instead of null