minor fix for API