testing refactored api