refactoring SUGAR api