refactor internal api